#ifndef GUI_INFO_H
#define GUI_INFO_H
//
#include "ui_gui_info.h"
#include "main.h"

#include "base_modul.h"
#include "../qxml.h"
#include "basedav.h"
#include "networkdav.h"
#include "davpropfind.h"
#include "dav_get.h"
//
/*  Save file as gui_info.h  */
/*  incomming class name Gui_Info */
//
#include <QPointer>
//
class Gui_Info : public QDialog, public Ui::Gui_Info, public Base_Modul
{
     Q_OBJECT
//
public:	 
    Gui_Info( NetworkDav * db , QString path , const QString mirrordir  );
//
protected:	 
    void closeEvent( QCloseEvent* );
    NetworkDav *dbdav;
    QStringList Get_File;
    ///////QStringList Get_Dir;
    QStringList Unique_Dir;
    QStringList OnTmpLevel;
    QStringList Workin_Dir;
    QStringList Get_Summ_File;
    QString path;
    int workonlevel;
    int lastopgoing;
    int passaggiwake;
    bool aborter;
    bool havingdir;
    QString redirpath;
    QString actualurl;
    QString locMirror;
    QString remotepath;
    QString startpath;
    QHttp *davinfo;
    int david;
    QFile *BeamLogFile;
//
private:
 
 void Load_Connector();
 void WakeUpsFile();
 void ButtonSetup();
  void GrabNextlevel( int level );
 void NextInfoDir( int now , int level  );
 QString RealRemotePath( QString dirorfile );
 QString ToLocalPathPath( QString remotefile );
 void InfoPath( const QString dir , int level );

signals:

public slots:
    void StopCicles();
void StartCicles();
void NextFileGet( int now );
void ShowMessageWarning( QString msg );
void RegisterRecursive(QStringList xdir ,QStringList xfile , int level );
void SendStatus( int bytesRead, int totalBytes );
void Wake_Finish( int requestId, bool error );

};
//
#endif // GUI_INFO_H

